package com.luna.beans;

public class Note {
    private int id;
    private String title;
    private String content;
    private int uploader_id;
    private int book_id;

    public Note(String title, String content, int uploader_id, int book_id) {
        this.title = title;
        this.content = content;
        this.uploader_id = uploader_id;
        this.book_id = book_id;
    }

    public Note(int id, String title, String content, int uploader_id, int book_id) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.uploader_id = uploader_id;
        this.book_id = book_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getBook_id() {
        return book_id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public int getUploader_id() {
        return uploader_id;
    }

    public void setUploader_id(int uploader_id) {
        this.uploader_id = uploader_id;
    }

    @Override
    public String toString() {
        return "Note{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", uploader_id=" + uploader_id +
                ", book_id=" + book_id +
                '}';
    }
}
